<template>
  <div class="item" @click="btnClick">
      <div><slot name="item-icon"></slot></div>
      <slot name="item-text"></slot>
  </div>
</template>

<script>
export default {
    name: 'nqm_item',
    methods: {
      btnClick(){
        if(this.url)
          this.$router.push('/nqm/'+ this.url)
      }
    },
    props: {
      url: String
    }
}
</script>

<style>
.item {
  flex: 1;
  text-align: center;
  height: 49px;
  font-size: 14px;
  display: inline-block;
  margin: 20px;
}


</style>